package com.cap.dreamcircle.Model.Bean;

/**
 * Created by liucxu on 2017/9/1.
 */

public class GridCalenderDateEntity {

    public GridCalenderDateEntity(int year, int month, int day) {
        if (month > 12) {
            month = 1;
            year++;
        } else if (month < 1) {
            month = 12;
            year--;
        }
        this.year = year;
        this.month = month;
        this.day = day;
    }

    private int year;
    private int month;
    private int day;
    private boolean isCurrentMonth;
    private int dreamType=-1;

    public int getDreamType() {
        return dreamType;
    }

    public void setDreamType(int dreamType) {
        this.dreamType = dreamType;
    }

    public boolean isCurrentMonth() {
        return isCurrentMonth;
    }

    public void setCurrentMonth(boolean currentMonth) {
        isCurrentMonth = currentMonth;
    }

    public int getYear() {
        return year;
    }

    public void setYear(int year) {
        this.year = year;
    }

    public int getMonth() {
        return month;
    }

    public void setMonth(int month) {
        this.month = month;
    }

    public int getDay() {
        return day;
    }

    public void setDay(int day) {
        this.day = day;
    }

    public String toString(){
        return year+"-"+(month>9?month+"":"0"+month)+"-"+(day>9?day+"":"0"+day);
    }
}
